Revert "feat: human-in-the-loop support with AskUserQuestion"#896
Revert "feat: human-in-the-loop support with AskUserQuestion"#896Gkrumbach07 merged 1 commit intomainfrom
Conversation
This reverts commit 43a5d7d.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (26)
Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting WalkthroughThis pull request removes agent status tracking and question-handling functionality throughout the codebase. Changes include elimination of agent status derivation, removal of UI components for status indicators, simplification of session status display to phase-only, and cleanup of related backend websocket logic, Python runner infrastructure, and type definitions across frontend and backend. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
## Summary - **AskUserQuestion UI**: Interactive question component with single/multi-select options, freeform "Other" input, and multi-question tabbed navigation - **Agent status from event log**: Derive `agentStatus` at query time from persisted AG-UI events instead of caching on the CR (eliminates goroutine race conditions) - **Frontend status indicators**: `SessionStatusDot` and `AgentStatusIndicator` components for detail and table views, `useAgentStatus` hook reads raw `PlatformMessage.toolCalls[]` format - **TOOL_CALL_RESULT emission**: Adapter emits `TOOL_CALL_RESULT` on next run for halted tool calls so the frontend transitions questions to answered state - **Session list refresh**: `refetchOnMount: 'always'` so navigating back to the sessions page fetches fresh data immediately Supersedes #871 (which was reverted in #896 due to a namespace-qualification bug in the event store). This version removes the namespace-qualification refactor entirely, keeping only the HITL feature changes. ## Changes from #871 Removed: - Namespace-qualified event store paths (caused chat-lost-on-refresh bug) - `.gitignore` worktrees entry - `Makefile` port-forward cleanup - `components/package-lock.json` deletion - `UnixMilli` session timestamp change Added: - `refetchOnMount: 'always'` on session list query for immediate refresh on navigation ## Test plan - [ ] Create session, send prompt that triggers AskUserQuestion - [ ] Verify question UI appears with options - [ ] Submit answer, verify question transitions to answered state - [ ] Verify agent resumes after answer - [ ] Session table shows correct agent status (working/idle/waiting_input) - [ ] Detail page shows correct agent status - [ ] Refresh page — verify chat history is preserved (no namespace bug) - [ ] Navigate away from session detail and back to sessions list — verify list refreshes immediately 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Ambient Code Bot <bot@ambient-code.local> Co-authored-by: ambient-code[bot] <ambient-code[bot]@users.noreply.github.com>
Reverts #871